<%@ page import="com.wowangz.cms.syscore.api.UserContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.wowangz.cms.common.utils.SysConstant" %>
<%@ page import="com.wowangz.cms.syscore.api.AuthorityUtils" %>
<%@ page import="com.wowangz.cms.syscore.utils.MessageResourcesUtils"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<jsp:useBean id="userContext" scope="session" class="com.wowangz.cms.syscore.api.UserContext"></jsp:useBean>
<c:set var="systemctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" type="image/ico" href="${systemctx }/resources/images/favicon.ico">
<link rel="stylesheet" type="text/css"  href="${systemctx }/resources/css/base.css" />
<link rel="stylesheet" type="text/css" href="${systemctx }/resources/css/metro/easyui.css" />
<link rel="stylesheet" type="text/css"  href="${systemctx }/resources/css/index.css" />
<link rel="stylesheet" type="text/css"  href="${systemctx }/resources/css/validationEngine.jquery.css" />
<link rel="stylesheet" type="text/css"  href="${systemctx }/resources/css/date.css" />
<link rel="stylesheet" type="text/css" href="${systemctx}/resources/ztree/css/zTreeStyle/zTreeStyle.css">

<link rel="stylesheet" type="text/css"  href="${systemctx }/resources/css/common.css" />
<link rel="stylesheet" type="text/css"  href="${systemctx }/resources/css/list.css" />
<link rel="stylesheet" type="text/css"  href="${systemctx }/resources/css/header.css" />
<link rel="stylesheet" type="text/css"  href="${systemctx }/resources/css/selService.css" />

<script type="text/javascript" src="${systemctx }/resources/js/jquery-1.9.1.min.js"></script>

<script type="text/javascript" src="${systemctx }/resources/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/iss_datagrid.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/dlg_alert.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/dlg_comfrim.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/iss_form.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/jquery.actual.min.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/json.min.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/utils.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/jquery.validationEngine.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/jquery.validationEngine-zh_CN.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/jquery.date_input.pack.js"></script>
<script type="text/javascript" src="${systemctx }/resources/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${systemctx }/resources/ztree/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="${systemctx }/resources/ztree/js/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/datacheck_formvalidate.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/jquery.iafAutoCompleter.js"></script>
<script type="text/javascript" src="${systemctx }/resources/js/common.js"></script>
<script type="text/javascript">

$(document).ready(function() {
  

	var messageType = '${userContext.messageType}';
	var message = '${userContext.message}';
	var closeWindow = '${userContext.closeWindow}';
	
	if(message != ""){
		//消息为INFO时处理逻辑
		if(messageType == '<%=UserContext.MessageType.INFO%>'){
			//	$.messager.alert('信息提示', message, 'info');
			alert(message);
		}
		//消息为ERROR时处理逻辑
		if(messageType == '<%=UserContext.MessageType.ERROR%>'){
			//	$.messager.alert('信息提示', message, 'error');
			alert(message);
		}
	}
	if(closeWindow=="true")
	{
		<%userContext.setCloseWindow(false);%>
		parent.document.location.reload();
	    $.fn.closeIssWindow();
	}
	
	//datagrid自适应
	window.document.body.onresize = function(){
		var datagrid = $('#datagrid');
		if(datagrid){
			$('#datagrid').datagrid('resize', {
			   width : (document.documentElement.clientWidth - 50)
			});
		}
	};
	
});

$.fn.ajaxmessage = function (data) {

	//消息为INFO时处理逻辑
	if(data.messagetype == '<%=UserContext.MessageType.INFO%>'){
		//$.messager.alert('信息提示', data.message, 'info');
		alert(data.message);
	}
	//消息为ERROR时处理逻辑
	if(data.messagetype == '<%=UserContext.MessageType.ERROR%>'){
		//$.messager.alert('信息提示', data.message, 'error');
		alert(data.message);
	}
};

</script>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta http-equiv="Cache-Control" content="no-store"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="renderer" content="webkit"/>
<title>TE运营后台管理系统</title>
</head>
<%
String paramMap = "";
if(request.getAttribute("paramMap") != null){
	paramMap = request.getAttribute("paramMap").toString();
}
%>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<span id="__systemctx"  style="display: none;">${systemctx}</span>
<span id="__parammap"  style="display: none;">${paramMap}</span>
<div id="wowangz_Magnifier_div" style="background:#ffffff"><table id="wowangz_Magnifier_datagrid" width="100%"></table></div>
<%
AuthorityUtils.isLogin(request, response, userContext);
%>